package com.service.impl;

import com.domain.Company;
import com.domain.Resume;
import com.mapper.ResumeMapper;
import com.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("resumeService")
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeMapper resumeMapper;


    @Override
    public List<Resume> find() {
        List<Resume> all = resumeMapper.find();
        return all;
    }

    @Override
    public void save(Resume resume) {
        resumeMapper.add(resume);
    }

    @Override
    public List<Resume> findAll(Integer username) {
        return resumeMapper.findAll(username);
    }

    @Override
    public List<Resume> look(Resume resume) {
        List<Resume> all = resumeMapper.look(resume);
        return all;
    }
}
